using UnityEngine;
using System.Collections;

public class MainMenuButtonBehaviour : MonoBehaviour {
	
	private GameObject helmetIcon;
	// Use this for initialization
	public void Start () {
		helmetIcon = GameObject.Find("Helmet");
		OnMouseExit();
	}
	
	public void OnMouseDown()
	{
		if (gameObject.name == "Start")
		{
			Application.LoadLevel("Level1");
		} else {
			Application.Quit();
		}
	}
	
	public void OnMouseEnter()
	{
		helmetIcon.transform.position = gameObject.transform.position;
	}
	
	public void OnMouseExit()
	{
		helmetIcon.transform.position = new Vector3(-500, -500, -500);
	}
	
}
